﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EActiveType extends Object
    {
        public var __value:int;
        public static const _EActiveTypeBattleField:int = 1;
        public static const _EActiveTypeGuildWar:int = 2;
        public static const _EActiveTypeEscort:int = 3;
        public static const _EActiveTypeArena:int = 4;
        public static const _EActiveTypeQuestion:int = 5;
        public static const _EActiveTypeRoutine:int = 6;
        public static const _EActiveTypeSevenDaysChallenge:int = 7;
        public static const _EActiveTypeTreasureMap:int = 8;
        public static const _EActiveTypeHitChartChallenge:int = 9;
        public static const _EActiveTypeSunBath:int = 10;
        public static const _EActiveTypeGuildTask:int = 11;
        public static const _EActiveTypePeaceBoss:int = 12;
        public static const _EActiveTypeGuildRedEnvelope:int = 13;
        public static const _EActiveTypeRaider:int = 14;
        public static const _EActiveTypeMoneyCatcher:int = 15;
        public static const _EActiveTypeMonsterSiege:int = 16;
        public static const _EActiveTypeGuildBoss:int = 17;
        public static const _EActiveTypeGuildDefense:int = 18;
        public static const _EActiveTypeDoubleHang:int = 19;
        public static const _EActiveTypeMainCityBattle:int = 20;
        public static const _EActiveTypeGuildGarden:int = 21;
        public static const _EActiveTypeArena2:int = 22;
        public static const _EActiveTypeDouble11:int = 23;
        public static const _EActiveTypeExpCopy:int = 24;
        public static const _EActiveTypeMergeServer:int = 25;
        public static const _EActiveTypeSecKilling:int = 26;
        public static const _EActiveTypeThanksGiving:int = 27;
        public static const _EActiveTypeThanksGivingRed:int = 28;
        public static const _EActiveTypeTxConRechargeBD:int = 29;
        public static const _EActiveTypeTxConRechargeBDS:int = 30;

        public function EActiveType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EActiveType
        {
            return new EActiveType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EActiveType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 31)
            {
                throw new MarshalException();
            }
            return EActiveType.convert(_loc_2);
        }// end function

    }
}
